package String_test;

import java.util.Arrays;

public class demo03 {
    public static void main(String[] args) {
        //常用方法
        String str = "helloworld";
        System.out.println(str.substring(3));
        System.out.println(str.substring(3,6));

        System.out.println(str.toCharArray());
        System.out.println(Arrays.toString(str.getBytes()));
        System.out.println(str.replace("llo","lo"));

        //分割
        System.out.println(Arrays.toString(str.split("o")));
        String str1 = "er.t.yu";
        System.out.println(Arrays.toString(str.split("\\.")));
    }
}
